package com.chixing.util;

public enum OrderStatusEnum {
	WAIT_PAY("1","待付款"),    //待付款
	PAID("10","已付款"),        //已付款
	CANCELED("0","订单失效"),     //已取消
	CLOSED("5","交易关闭"),       //超时未支付，交易关闭
	ASFD("4","交易成功"),        //交易成功
	WAIT_SEND("2","待发货"),       //待发货
	SPDV("3","已发货");            //已发货

	public final String Key;
	public final String value;

	OrderStatusEnum(String key, String value) {
		this.Key = key;
		this.value = value;
	}
	public static String getName(String key){
		for (OrderStatusEnum status : OrderStatusEnum.values()){
			if (status.getKey().equals(key)){
				return status.value;
			}
		}
		return null;
	}

	public String getKey() {
		return Key;
	}

	public String getValue() {
		return value;
	}
}
